Fix math when converting nautical miles to statue miles. From Jason Slagle
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 24 Apr 2003 15:13:27 +0000 (15:13 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 24 Apr 2003 15:13:27 +0000 (15:13 +0000)
and approved by Alex.

gpsbabel/position.c

index 5e69f5e0b80df36c3cf632933544f34df4e20a78..36cceb54f0dcea1eca3b61d50a1ab4571c4992ba 100644 (file)
@@ -109,7 +109,7 @@ position_process(void)
                                   comp[i+1]->position.longitude.degrees);
 
                /* convert radians to integer feet */
-               dist = (int)((((dist * 180.0 * 60.0) / M_PI) / 1.1516) * 5280.0);
+               dist = (int)((((dist * 180.0 * 60.0) / M_PI) * 1.1516) * 5280.0);
 
                if (dist <= pos_dist) { 
                        waypt_del(comp[i]);